
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description" content="">
        
        <meta name="format-detection" content="telephone=no" />
        <meta name="format-detection" content="address=no">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0">
        <title>wwx&amp;tes-</title>
        <style>
          textarea {
            width: 100%;
            padding: 10px;
            font-family: Arial, sans-serif;
            border: 1px solid #ccc;
            border-radius: 4px;
          }
          button {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: 1px solid #ccc;
            border-radius: 4px;
            cursor: pointer;
          }
          button:hover {
            background-color: #45a049;
          }
        </style>
        
    </head>
        <body></body>
        <textarea id="inputText" rows="10" cols="50"></textarea>
        <button onclick="processEng()">处理英文</button><button onclick="processText()">处理文本</button><button onclick="processCache()">清空Cache
        </button>    
        <textarea id="outputText" rows="10" cols="50"></textarea>
        <details>
          <summary>Cache</summary>
          <textarea id="cache" rows="10" cols="50"></textarea>
        </details>
        

        <script>
          function processText() {
            let inputText = document.getElementById('inputText').value;
            let outputText = inputText.replace(/\n+/g, '');
            document.getElementById('outputText').value = outputText;
          }
          function processEng() {
            let inputText = document.getElementById('inputText').value;
            let outputText = inputText.replace(/\n+/g, ' ');
            document.getElementById('outputText').value = outputText;
          }
          function processCache(){
            
            document.getElementById('cache').value = '';
          }
        </script>
        
        </html>
        
















